const Counters = require('./models/counters');

new Counters({_id:"food_id",sequence_value:1}).save((err, data) => {
  if (err) {
    console.log('mongoose 初始化 insert food');
  }else{
    console.log('插入成功', data);
  }
})

new Counters({_id:"cate_id",sequence_value:1}).save((err, data) => {
  if (err) {
    console.log('mongoose 初始化 insert cate');
  }else{
    console.log('插入成功', data);
  }
})

new Counters({_id:"order_id",sequence_value:1}).save((err, data) => {
  if (err) {
    console.log('mongoose 初始化 insert order');
  }else{
    console.log('插入成功', data);
  }
})

new Counters({_id:"user_id",sequence_value:1}).save((err, data) => {
  if (err) {
    console.log('mongoose 初始化 insert user');
  }else{
    console.log('插入成功', data);
  }
})
